<template>
  <div id="app">
    <router-view />
    <div id="nav">
      <div v-if="$route.meta.showtab">
        <router-link to="/optimGoods/nowList">淘宝高佣选品库</router-link>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },

  computed: {},
  created() {},
  mounted: function() {
    //关闭浏览器清空localstore  此方法刷新页面时也会执行
    // window.addEventListener("beforeunload", () => {
    //   window.localStorage.clear();
    // });
  },
  methods: {}
};
</script>
<style lang="less">
html,
body {
  margin: 0;
  padding: 0;
  background-color: #f6f6f6;
}
body {
  overflow-y: scroll;
  overflow-x: hidden;
}
a {
  color: rgb(136, 134, 134);
  text-decoration: none;
}
a:hover {
  color: rgb(38, 51, 243);
}
ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}
p {
  padding: 0;
  margin: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
  display: none;
  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
/* 滚动条宽度 */
::-webkit-scrollbar {
  width: 7px;
  height: 10px;
}
/* 滚动条的滑块 */
::-webkit-scrollbar-thumb {
  background-color: #a1a3a9;
  border-radius: 3px;
}
</style>
